﻿<table>
<tr>
<?php echo form_open('adminStaff/deleteProjects/'.$id); ?>
	<td colspan="2"><h2 class="title">Проекти</h2></td>
	<td><input type="submit" name="submit" value="Избриши селектирани" /></td>
</tr>
<tr><td colspan="2"><h2>Промени проекти</h2></td></tr>
<?php 
	foreach ($projects as $project)
	{
		echo "<tr><td colspan='2'><a href='".site_url('adminStaff/editProject/'.$project->idPrjtPk."/".$id)."'>".$project->name."</a></td>";
		echo "<td><input type='checkbox' name=".$project->idPrjtPk." value=".$project->idPrjtPk." /></td></tr>";
	}	
?>
<?php echo form_close(); ?>
<tr><td colspan="2"><h2>Додади проект</h2></td></tr>

<?php echo form_open('adminStaff/addProject/'.$id); ?>
<tr><td>Име:</td>
	<td><input type="text" name="name" id="name" /></td>
	</tr><tr><td>Спонзор:</td>
	<td><input type="text" name="sponsor" id="sponsor" /></td>
	</tr><tr>
	<td colspan="2"><input type="submit" name="submit" value="Додади" /></td>
	</tr>
<?php echo form_close(); ?>

</table>
